import request from '@/utils/request'

export function busNumberList (parameter) {
  return request({
    url: '/boss/busNumber/list',
    method: 'get',
    params: parameter
  })
}
export function checkContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/checkContractCashFlow',
    method: 'get',
    params: parameter
  })
}
export function discardContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/discardContractCashFlow',
    method: 'get',
    params: parameter
  })
}
export function remarkContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/remarkContractCashFlow',
    method: 'get',
    params: parameter
  })
}
export function getMyBusinessCode (parameter) {
  return request({
    url: '/boss/busNumber/getMyBusinessCode',
    method: 'get',
    params: parameter
  })
}

export function listContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/listContractCashFlow',
    method: 'get',
    params: parameter
  })
}

export function busNumberSave (parameter) {
  return request({
    url: '/boss/busNumber/add',
    method: 'post',
    data: parameter
  })
}

export function listV2 (parameter) {
  return request({
    url: '/boss/project/info/listV2',
    method: 'post',
    data: parameter
  })
}

export function listProNo (parameter) {
  return request({
    url: '/boss/project/info/listProNo',
    method: 'post',
    data: parameter
  })
}

export function listContractCode (parameter) {
  return request({
    url: '/boss/busNumber/listContractCode',
    method: 'get',
    params: parameter
  })
}

export function exportCash (parameter) {
  return request({
    url: '/boss/project/info/exportCash',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

export function saveContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/saveContractCashFlow',
    method: 'post',
    data: parameter
  })
}

export function listNoFinanceAndBiz (parameter) {
  return request({
    url: '/boss/system/role/admin/listNoFinanceAndBiz',
    method: 'post',
    data: parameter
  })
}

export function saveWarning (parameter) {
  return request({
    url: '/boss/busNumber/saveWarning',
    method: 'post',
    data: parameter
  })
}

export function getContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/getContractCashFlow',
    method: 'get',
    params: parameter
  })
}

export function upContractCashFlow (parameter) {
  return request({
    url: '/boss/busNumber/upContractCashFlow',
    method: 'post',
    data: parameter
  })
}

export function busNumberUpdate (parameter) {
  return request({
    url: '/boss/busNumber/update',
    method: 'post',
    data: parameter
  })
}

export function exportContract (parameter) {
  return request({
    url: '/boss/busNumber/exportContract',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

export function exportContractInfo (parameter) {
  return request({
    url: '/boss/busNumber/exportContractInfo',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

export function listSponsor (parameter) {
  return request({
    url: '/boss/busNumber/listSponsor',
    method: 'get',
    params: parameter
  })
}

export function getWarning (parameter) {
  return request({
    url: '/boss/busNumber/getWarning',
    method: 'get',
    params: parameter
  })
}

export function getProByContractCode (parameter) {
  return request({
    url: '/boss/busNumber/getProByContractCode',
    method: 'post',
    data: parameter
  })
}

export function getListByBusinessCode (parameter) {
  return request({
    url: '/boss/busNumber/getListByBusinessCode',
    method: 'get',
    params: parameter
  })
}

export function busNumberDel (parameter) {
  return request({
    url: '/boss/busNumber/del',
    method: 'post',
    data: parameter
  })
}

export function busNumberClose (parameter) {
  return request({
    url: '/boss/busNumber/close',
    method: 'post',
    params: parameter
  })
}

export function existFeeApplyByBusinessCode (parameter) {
  return request({
    url: '/boss/busNumber/existFeeApplyByBusinessCode',
    method: 'get',
    params: parameter
  })
}
